package cn.lg.soar.database.query;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * @author luguoxiang 469599794@qq.com
 * @Date: 2023/9/26 22:21
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@RequiredArgsConstructor
@Getter
public enum ConditionEnum {
    eq("{0}={1}"),
    ne("{0}<>{1}"),
    lt("{0}<{1}"),
    gt("{0}>{1}"),
    le("{0}<={1}"),
    ge("{0}>={1}"),
    like("{0} LIKE %{1}%"),
    likeRight("{0} LIKE {1}%"),
    likeLeft("{0} LIKE %{1}"),
    notLike("{0} NOT LIKE %{1}%"),
    in("{0} IN({1})"),
    notIn("{0} NOT IN({1})"),
    between("{0} BETWEEN {1}"),
    notBetween("{0} NOT BETWEEN {1}"),
    isNull("{0} IS NULL"),
    isNotNull("{0} IS NOT NULL");

    final String expression;

}
